package com.sancorseguros.nova.selenium.config;

import org.junit.After;
import org.junit.Before;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebDriverBackedSelenium;
import org.openqa.selenium.ie.InternetExplorerDriver;

import com.thoughtworks.selenium.SeleneseTestBase;

public class SuperTest extends SeleneseTestBase {

	public WebDriver driver;

	@Before
	public void setUp() throws Exception {
		System.setProperty(StaticSelenium.SYSTEM_PROP, StaticSelenium.IE_DRIVER);
		this.setDriver(new InternetExplorerDriver());
		this.getDriver().manage().window().maximize();
		selenium = new WebDriverBackedSelenium(this.getDriver(), StaticSelenium.LOCAL_HOST+":"+StaticSelenium.PORT);
	}

	@After
	public void tearDown() throws Exception {
		selenium.stop();
	}

	public WebDriver getDriver() {
		return driver;
	}

	public void setDriver(WebDriver driver) {
		this.driver = driver;
	}
	

}
